from django.db import models

# Create your models here.

from utils.models import CoreModel

class Music(CoreModel):
    title = models.CharField(max_length=250,verbose_name="音乐名称", help_text="音乐名称")
    artist = models.CharField(max_length=250,verbose_name="歌手", help_text="歌手")
    duration = models.FloatField(verbose_name="播放时长", help_text="播放时长")
    last_play = models.DateTimeField(verbose_name="最后播放时间", help_text="最后播放时间")
    
    class Meta:
        db_table = "resource_music"
        verbose_name = "音乐表"
        verbose_name_plural = verbose_name
        ordering = ("-create_time",)
    
    
    